From: Keir Fraser Date: Thu, 25 Jun 2009 17:28:59 +0000 (+0100) Subject: p2m hap: Fix dirty vram tracking function X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13682 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22%22?a=commitdiff_plain;h=00fdbf168a2e984680fee4e044d8edb040404025;p=xen.git p2m hap: Fix dirty vram tracking function This patch fixes an incorrect mode conversion when disable vram dirty tracking. Acked-by: Stefano Stabellini Signed-off-by: Wei Huang --- diff --git a/xen/arch/x86/mm/hap/hap.c b/xen/arch/x86/mm/hap/hap.c index b9218de359..0e4ce30f68 100644 --- a/xen/arch/x86/mm/hap/hap.c +++ b/xen/arch/x86/mm/hap/hap.c @@ -90,7 +90,7 @@ int hap_disable_vram_tracking(struct domain *d) /* set l1e entries of P2M table with normal mode */ for (i = dirty_vram->begin_pfn; i < dirty_vram->end_pfn; i++) - p2m_change_type(d, i, p2m_ram_rw, p2m_ram_logdirty); + p2m_change_type(d, i, p2m_ram_logdirty, p2m_ram_rw); flush_tlb_mask(&d->domain_dirty_cpumask); return 0;